./f2bin norm_data.txt data.bin

#for codebk size of ...
echo "for cdwd length 5, cdbk size 32..."
./stdvq -t data.bin  -c data5_32v.cdb  -d 5 -f 32
./stdvqe -i data.bin -c data5_32v.cdb  -d 5 -s 32  -p -r -o syndata5_32v.out
./bin2f data5_32v.out data5_32.rec
./bin2db data5_32v.cdb data5_32v.cdk



::echo "for cdwd length 10, cdbk size 32..."
::./stdvq -t syndata.bin  -c syndata10_32v.cdb  -d 10 -f 32
::./stdvqe -i syndata.bin -c syndata10_32v.cdb  -d 10 -s 32  -p -r -o syndata10_32v.out
::./bin2f syndata10_32v.out syndata10_32v.rec
::./bin2db syndata10_32v.cdb syndata10_32v.cdk
::mv histogram1 syndata10_32v.his


::echo "for cdwd length 20, cdbk size 16..."
::./stdvq -t syndata.bin  -c syndata20_16.cdb  -d 20 -f 16
::./stdvqe -i syndata.bin -c syndata20_16.cdb  -d 20 -s 16  -p -r -o syndata20_16.out
::./bin2f syndata20_16.out syndata20_16.rec
::./bin2db syndata20_16.cdb syndata20_16.cdk
::mv histogram1 syndata20_16.his


::echo "for cdwd length 30, cdbk size 16..."
::./stdvq -t syndata.bin  -c syndata30_16.cdb  -d 30 -f 16
::./stdvqe -i syndata.bin -c syndata30_16.cdb  -d 30 -s 16  -p -r -o syndata30_16.out 
::./bin2f syndata30_16.out syndata30_16.rec
::./bin2db syndata30_16.cdb syndata30_16.cdk
::mv histogram1 syndata30_16.his


echo "for cdwd length 60, cdbk size 6..."
./stdvq -t syndata.bin  -c syndata60_6.cdb  -d 60 -f 6
./stdvqe -i syndata.bin -c syndata60_6.cdb  -d 60 -s 6  -p -r -o syndata60_6.out 
./bin2f syndata60_6.out syndata60_6.rec
./bin2db syndata60_6.cdb syndata60_6.cdk
mv histogram1 syndata60_6.his


